export interface CreateOrUpdateProductsRequestData {
  id?: string | undefined
  name: string
  type: string
  remark: string
  name_en?: string
  remark_en?: string
}

export interface CreateOrUpdateProductsChildrenRequestData {
  id?: string | undefined
  product_id: string
  name: string
  icon_url: string
  introduction: string
  application_scenarios: any
  applicable_fields: string
  parameter_name: string
  certificate: string
  parameter_img_url: string
  applicable_parts: string
  storage: string
  packing: string
  number: string
  name_en?: string
  introduction_en?: string
  application_scenarios_en?: any
  applicable_fields_en?: string
  parameter_name_en?: string
  certificate_en?: string
  applicable_parts_en?: string
  storage_en?: string
  packing_en?: string
}

export interface GetProductsRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：产品类型 */
  type?: string
  /** 查询参数：产品系列名称 */
  name?: string
}

export interface GetProductsChildrenRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：产品类型 */
  type?: string
  /** 查询参数：产品名称 */
  name?: string
}

export interface GetProductsDetailRequestData {
  /** 详情id */
  id: string
}

export interface GetProductsData {
  id: string
  name: string
  type: string
  remark: string
  productsChildren: any[]
}

export interface GetProductsChildrenData {
  id: string
  name: string
  icon_url: string
  product_id: string
  introduction: string
  application_scenarios: any
  applicable_fields: string
  parameter_name: string
  certificate: string
  parameter_img_url: string
  applicable_parts: string
  storage: string
  packing: string
  number: string
  name_en?: string
  introduction_en?: string
  application_scenarios_en?: any
  applicable_fields_en?: string
  parameter_name_en?: string
  certificate_en?: string
  applicable_parts_en?: string
  storage_en?: string
  packing_en?: string
}

export type GetProductsResponeseDetailData = ApiResponseData<GetProductsData>
export type GetProductsChildrenResponeseDetailData = ApiResponseData<GetProductsChildrenData>

export type GetProductsChildrenResponeseData = ApiResponseData<{
  list: GetProductsChildrenData[]
  total: number
  page: number
}>

export type GetProductsResponseData = ApiResponseData<{
  list: GetProductsData[]
  total: number
  page: number
}>
